#include "EE.h"

EEcpu::EEcpu()
{
	ctx = new EEctx;
	RAM = new byte[RAMSIZE];

	this->reset();
}

void EEcpu::reset()
{
    ctx->AF.reg.A = 0x00;
    ctx->AF.reg.F = F_INIT;
    ctx->BC.pair = 0x0000;
    ctx->DE.pair = 0x0000;
    ctx->HL.pair = 0x0000;

    ctx->PC = 0x0000;
    ctx->SP = SP_INIT;

    ctx->cycles = 0;
}

